<!--{template header,admin}-->
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/admin.js" type="text/javascript"></script>
<script src="js/dialog.js" type="text/javascript"></script>
<script type="text/javascript">
function checkform(form){
var username = form.username.value;
var goodatcate = form.goodatcategory.value;
if(username == '' || goodatcate == '' ){
	alert("用户名或分类不能为空");
	return false;
}
return true;
}

</script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
  <div style="float:left;"><a href="index.php?admin_main/stat{$setting['seo_suffix']}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;专家管理</div>
</div>
<!--{if isset($message)}-->
<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
	<tr>
		<td class="{$type}">{$message}</td>
	</tr>
</table>
<!--{/if}-->
<form action="index.php?admin_expert/add{$setting['seo_suffix']}" method="post" onsubmit="return checkform(this);">
<table width="100%" cellspacing="1" cellpadding="4" align="center" class="tableborder">
	<tbody>
	<tr class="header" ><td colspan="3">专家管理</td></tr>
	<tr class="altbg1"><td colspan="3">1、用户名必须是系统已注册用户。2、分类为系统已添加分类，多个分类用,隔开,最多不超过3个</td></tr>
	<tr>
        <td width="30%" >用户名:<input type="text" name="username"/></td>
        <td  width="40%">擅长分类:<input type="text" name="goodatcategory" size="50"/></td>
        <td  width="30%"><input class="button" type="submit" value="提 交"></td>
   </tr>
	</tbody>
</table>
</form>
<form action="index.php?admin_expert/remove{$setting['seo_suffix']}" method="post">
 <table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableborder">
	<tr class="header">
		<td width="10%"><input class="checkbox" id="chkall" onclick="checkall('delete[]')" type="checkbox" name="chkall"><label for="chkall">删除</label></td>
		<td  width="40%">用户名</td>
		<td  width="50%">擅长分类</td>
	</tr>
	<!--{loop $expertlist $expert}-->
		<tr>
			<td width="20" class="altbg2"><input class="checkbox" type="checkbox" value="{$expert['uid']}" name="delete[]"></td>
			<td width="300" class="altbg2"><strong>{$expert['username']}</strong></td>
			<td width="100" class="altbg2">{$expert['categoryname']}</td>
		</tr>
	<!--{/loop}-->
	<tr class="altbg1"><td colspan="3" class="altbg1"  align="left"><input type="submit" name="submit"  value="提&nbsp;交" /></td></tr>
</table>

</form>
<br>
<!--{template footer,admin}-->


